﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MINERP.MODEL.AutoOrder_Fuji
{

    public enum AutoOrderStatus
    {
        WaitDownLoad,//等待下载
        DownLoading,//正在下载
        Resolving,//正在解包
        Successed,//成功解包
        Error//现在错误
    }
    /// <summary>
    /// 监控远程开单的目录结果里面的目录实体类
    /// </summary>
    public class AutoOrderFolder_Info
    {
        /// <summary>
        /// 文件夹的名称
        /// </summary>
        public string FolderName { get; set; }
        /// <summary>
        /// 文件夹的路径
        /// </summary>
        public string FolderPath { get; set; }
        /// <summary>
        /// 文件夹创建日期
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// xml文夹的路径
        /// </summary>
        public string OrderXMLpath { get; set; }
        /// <summary>
        /// 状态，主要有：正在正载，等待下载
        /// </summary>
        public AutoOrderStatus Status { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 状态的名称
        /// </summary>
        public string StatusName
        {
            get
            {
                string statusName = string.Empty;
                switch (Status)
                {
                    case AutoOrderStatus.WaitDownLoad: statusName = "等待下载";                       
                        break;
                    case AutoOrderStatus.DownLoading: statusName = "正在下载...";
                        break;
                    case AutoOrderStatus.Resolving: statusName = "正在解析...";
                        break;
                    case AutoOrderStatus.Successed: statusName = "开单成功";
                        break;
                    case AutoOrderStatus.Error: statusName = "错误";
                        break;
                    default: statusName = "";
                        break;
                }
                return statusName;
            }
        }
    }
}
